package com.xpjhs.resources.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 资源Entity
 * 
 * @author guohuijun
 * @createDate 2014年7月12日 下午10:10:41 @ QQ: 263235040
 */
@Entity(name = "com.xpjhs.resources.model.Resources")
@Table(name = "xpjhs_resources")
public class Resources implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id; // 唯一ID
	private String name;// 资源名称
	private String url; // 资源地址 不提供资源上传，所以这里只需要填写地址就OK
	private String password;// 资源提取码
	private String status;// 资源审核状态
	private String content;// 备注
	private ResourcesType type;// 资源类型
	private String createTime;// 资源上传时间
	private String modyfiTime;// 资源修改时间
	private String creater;// 资源上传者
	private String checker;// 资源审核者

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getModyfiTime() {
		return modyfiTime;
	}

	public void setModyfiTime(String modyfiTime) {
		this.modyfiTime = modyfiTime;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public String getChecker() {
		return checker;
	}

	public void setChecker(String checker) {
		this.checker = checker;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public ResourcesType getType() {
		return type;
	}

	public void setType(ResourcesType type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
